package com.mmt.www.mart.order;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import com.mmt.www.mart.order.interpace.OrderService;

@Service(value = "OrderService")
public class OrderServiceImpl implements OrderService {
	
	@Resource(name = "OrderDao")
	OrderDao dao;
	
	Logger log = Logger.getLogger(this.getClass());
	
	@Override
	public List<OrderDto> orderExecute(OrderDto dto, Model model, HttpSession session) {
		
		String mart_code = (String) session.getAttribute("mart_code");
	
		return dao.orderList(mart_code);
	}
	
	
	

}
